package org.client.iot.domain;

/**
 * @Author zl
 * @Date 2023/7/22  14:16
 * @Description
 */
public enum MultiPage {
    基本信息(0), 配置信息(1), 数据校验(2), 历史曲线(3);

    private final int position;

    MultiPage(int pos) {
        position = pos;
    }

    public static MultiPage getPage(int position) {
        return MultiPage.values()[position];
    }

    public static int size() {
        return MultiPage.values().length;
    }

    public static String[] getPageNames() {
        MultiPage[] pages = MultiPage.values();
        String[] pageNames = new String[pages.length];
        for (int i = 0; i < pages.length; i++) {
            pageNames[i] = pages[i].name();
        }
        return pageNames;
    }

    public int getPosition() {
        return position;
    }

}
